package com.ruoyi.lnb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.lnb.mapper.TestidMapper;
import com.ruoyi.lnb.domain.Testid;
import com.ruoyi.lnb.service.ITestidService;

/**
 * testService业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-15
 */
@Service
public class TestidServiceImpl implements ITestidService 
{
    @Autowired
    private TestidMapper testidMapper;

    /**
     * 查询test
     * 
     * @param charid test主键
     * @return test
     */
    @Override
    public Testid selectTestidByCharid(String charid)
    {
        return testidMapper.selectTestidByCharid(charid);
    }

    /**
     * 查询test列表
     * 
     * @param testid test
     * @return test
     */
    @Override
    public List<Testid> selectTestidList(Testid testid)
    {
        return testidMapper.selectTestidList(testid);
    }

    /**
     * 新增test
     * 
     * @param testid test
     * @return 结果
     */
    @Override
    public int insertTestid(Testid testid)
    {
        return testidMapper.insertTestid(testid);
    }

    /**
     * 修改test
     * 
     * @param testid test
     * @return 结果
     */
    @Override
    public int updateTestid(Testid testid)
    {
        return testidMapper.updateTestid(testid);
    }

    /**
     * 批量删除test
     * 
     * @param charids 需要删除的test主键
     * @return 结果
     */
    @Override
    public int deleteTestidByCharids(String[] charids)
    {
        return testidMapper.deleteTestidByCharids(charids);
    }

    /**
     * 删除test信息
     * 
     * @param charid test主键
     * @return 结果
     */
    @Override
    public int deleteTestidByCharid(String charid)
    {
        return testidMapper.deleteTestidByCharid(charid);
    }
}
